#ifndef KC_ATTCHFILENAMECOND_H__KC
#define KC_ATTCHFILENAMECOND_H__KC

#include <string>
#include <unicode/unistr.h>
#include "Operator.h"
#include "../../mime/data/Attachment.h"

namespace kc_sf
{
	class AttchFilenameCond
	{
		public:

			AttchFilenameCond( Operator op, const std::string &name, bool ext = false );
			AttchFilenameCond( const AttchFilenameCond &cond );
			AttchFilenameCond operator=( const AttchFilenameCond &cond );

			bool eval( const Attachment &attch );

		private:

			Operator c_name_operator;
			UnicodeString c_name;
			bool c_check_only_ext;
	};
}

#endif /* KC_ATTCHFILENAMECOND_H__KC */
